package com.kang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kang.entity.ChatRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatRecordMapper extends BaseMapper<ChatRecord> {

    ChatRecord fingChatRecord(@Param("sendUserId") Integer sendUserId,@Param("reciveUserId") Integer reciveUserId);

    Page<ChatRecord> fingChatRecordList(Page<ChatRecord> page,@Param("sendUserId") Integer sendUserId,@Param("receiveUserId") Integer receiveUserId );
}
